Skip to content

feat(agent-tools): tighten tool approvals and shortcuts#1343

Merged
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:main
Jun 29, 2026
Merged

feat(agent-tools): tighten tool approvals and shortcuts#1343
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Require approval for file-modifying tools and add a FlowChat approval-bar shortcut for enabling tool auto execute.

Fixes #

Type and Areas

Type:

Feature / UI/UX / test

Areas:

Rust core, web UI, FlowChat, settings/i18n

Motivation / Impact

Write, Edit, and Delete now report that they need permissions, so file modifications flow through the approval path even when wrapped by snapshot tracking.

The FlowChat approval bar now includes a secondary ShieldCheck action that enables tool auto execute by updating ai.skip_tool_confirmation. The action is visually separated from the per-run allow/reject controls, uses neutral styling by default, and shows its emphasized state on hover.

This also adds localized approval-bar copy, test coverage for the shortcut, WebFetch availability in Claw mode, and shorter Cron tool descriptions.

Verification

  • cargo check -p bitfun-core
  • pnpm run type-check:web
  • pnpm --dir src/web-ui run test:run src/flow_chat/components/ToolApprovalBar.test.tsx
  • pnpm run i18n:audit

Reviewer Notes

The auto-execute shortcut only enables the global setting; it does not implicitly approve the currently pending tool call.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

wsp1911 added 2 commits June 29, 2026 15:41
- Require permissions for Write, Edit, and Delete tool execution
- Add a FlowChat approval-bar shortcut to enable tool auto execute
- Separate the auto-execute shortcut from per-run approval actions with neutral default styling
- Add localized approval-bar copy for auto execute success, failure, label, and tooltip
- Allow Claw mode to use WebFetch and simplify Cron tool descriptions
- Cover the auto-execute shortcut with focused ToolApprovalBar tests
Clamp html5ever and selectors to WARN in desktop and CLI logging so WebFetch
readable extraction no longer floods app logs with parser debug output. Move
notify from OFF to WARN to keep file-watcher warnings and errors visible while
still suppressing lower-level noise.
@wsp1911 wsp1911 marked this pull request as ready for review June 29, 2026 08:13
@wsp1911 wsp1911 merged commit ad43df4 into GCWing:main Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant